package com.example.demo.request;

import java.util.Map;

/**
 * 任务搜索请求
 */
public class SearchNewTaskRequest {
    private Long dataSourceId;                    // 数据源ID（必需）
    private Integer isAssigned;                   // 是否已分配流程：0=未分配，1=已分配
    private Map<String, Object> searchParams;     // 搜索参数，键为字段名，值为搜索值
    private int page = 0;                        // 页码，从0开始
    private int size = 10;                       // 每页数量，默认10
    
    public Long getDataSourceId() {
        return dataSourceId;
    }
    
    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }
    
    public Integer getIsAssigned() {
        return isAssigned;
    }
    
    public void setIsAssigned(Integer isAssigned) {
        this.isAssigned = isAssigned;
    }
    
    public Map<String, Object> getSearchParams() {
        return searchParams;
    }
    
    public void setSearchParams(Map<String, Object> searchParams) {
        this.searchParams = searchParams;
    }
    
    public int getPage() {
        return page;
    }
    
    public void setPage(int page) {
        this.page = page;
    }
    
    public int getSize() {
        return size;
    }
    
    public void setSize(int size) {
        this.size = size;
    }
}